<?php

namespace Sharks\Core\Http\Routing;

use Closure;
use Sharks\Core\Http\Request;

/**
 * 中间件
 *
 * HTTP Request -> MiddleWare1 -> ... -> App (Controller's Action) -> MiddleWare N -> Http Response
 *
 */
interface MiddleWare {
    function handle(Request $request, Closure $next);
}